package edu.gtcfla.km.platform.appmodules.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller(value="testController")
@Lazy
public class TestController {

	@RequestMapping(value = "/test.htm")
	public ModelAndView testFile(HttpServletRequest request ,
			HttpServletResponse response) throws Exception {
		java.security.Principal principal = (java.security.Principal)request.getUserPrincipal(); 
		
		
		String username = principal.getName(); 
		System.out.println("test : " + username);
		ModelAndView mav = new ModelAndView();
		mav.setViewName("test"); // view name
        
		return mav;

	}	
	
}
